export default function stringToDom<T extends keyof HTMLElementTagNameMap>(DOMString: string, tag: T) {
  const element = document.createElement(tag || 'div');
  element.innerHTML = DOMString;
  return element;
}
